package com.myplans.client.event;

import com.google.gwt.event.shared.GwtEvent;
import com.myplans.shared.User;

public class SignUpUserEvent extends GwtEvent<SignUpUserEventHandler> {
	private User user;
	public static Type<SignUpUserEventHandler> TYPE = new Type<SignUpUserEventHandler>();

	public SignUpUserEvent(User user) {
		this.user = user;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<SignUpUserEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(SignUpUserEventHandler handler) {
		handler.onSignUpUser(this);
	}

	public User getUser() {
		return user;
	}

}
